Ext.define('BM.view.token.CategoryEdit', {
    extend: 'Ext.window.Window',
    alias : 'widget.categoryedit',
    title : 'Edit Category',
    layout: 'fit',
    autoShow: true,
    initComponent: function() {
        this.items = [
            {
                xtype: 'form',
                labelWidth:50,
                width:300,
                items: [
                    {
                        xtype: 'textfield',
                        name : 'handCategoryName',
                        fieldLabel: '类型名称',
                        allowBlank: false
                    },
                    {
                        xtype: 'textfield',
                        name : 'handCategoryProp',
                        fieldLabel: '类型性质',
                        allowBlank: false 
                    },
                    {
                        xtype: 'textfield',
                        name : 'billType',
                        fieldLabel: '计费方式'
                    },
                    {
                        xtype: 'textfield',
                        name : 'containNum',
                        fieldLabel: '容纳人数'
                    },
                    {
                        xtype: 'textfield',
                        name : 'lowestCost',
                        fieldLabel: '最低消费'
                    },
                    {
                        xtype: 'textfield',
                        name : 'allDayPrice',
                        fieldLabel: '全天房价'
                    },
                    {
                        xtype: 'textfield',
                        name : 'overPrice',
                        fieldLabel: '超员费用'
                    },
                    {
                        xtype: 'textarea',
                        name : 'autoFreeFlag',
                        fieldLabel: '自免浴费'
                    },
                    {
                        xtype: 'textarea',
                        name : 'memo',
                        fieldLabel: 'memo'
                    },
                     { xtype: 'hidden',
                        name : 'id'
                    }
                ]
            }
        ];

        this.buttons = [
            {
                text: 'Save',
                action: 'save'
            },
            {
                text: 'Cancel',
                scope: this,
                handler: this.close
            }
        ];

        this.callParent(arguments);
    }
});